47a0dd7050cdfa5ef469d8679cdadb803052de87,graylog2-server/src/main/java/org/graylog2/rest/resources/system/indexer/IndicesResource.java,IndicesResource,closed,#,119

Before Change


            return Response.status(500).build();
        }

        result.put("indices", closedIndices);
        result.put("total", closedIndices.size());

        return Response.ok().entity(json(result)).build();
    }

After Change


            return Response.serverError().build();
        }

        final Set<String> closedIndices = closedIndicesBuilder.build();
        final Map<String, Object> result = ImmutableMap.of(
                "indices", closedIndices,
                "total", closedIndices.size());

        return Response.ok().entity(json(result)).build();
    }